IHipTextureRegion

Undocumented in source.

Members

Functions

getHeight
int getHeight()

Returns this region height

getRegion
TextureCoordinatesQuad getRegion()
Undocumented in source.
getTexture
const(IHipTexture) getTexture()
Undocumented in source.
getTexture
IHipTexture getTexture()
Undocumented in source.
getTextureHeight
int getTextureHeight()
Undocumented in source. Be warned that the author may not have intended to support it.
getTextureWidth
int getTextureWidth()
Undocumented in source. Be warned that the author may not have intended to support it.
getVertices
float[8] getVertices()
Undocumented in source.
getWidth
int getWidth()

Returns this region width

isFlippedX
bool isFlippedX()
Undocumented in source.
isFlippedY
bool isFlippedY()
Undocumented in source.
setFlippedX
void setFlippedX(bool flip)
Undocumented in source.
setFlippedY
void setFlippedY(bool flip)
Undocumented in source.
setRegion
void setRegion(float u1, float v1, float u2, float v2)
Undocumented in source.
setRegion
void setRegion(int width, int height, uint u1, uint v1, uint u2, uint v2)

The uint variant from the setRegion receives arguments in a non normalized way to setup the UV coordinates. It is better if you wish to just pass where it start and ends. The region is divided by the width and height

setRegion
void setRegion(uint u1, uint v1, uint u2, uint v2)

The UV coordinates passed are divided by the current texture width and height

setTexture
void setTexture(IHipTexture texture)
Undocumented in source.
setTexture
void setTexture(IHipTexture texture, float u1, float v1, float u2, float v2)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta